﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class ChiTietPhieuGuiHangBUS
    {
        public List<ChiTietPhieuGuiHangDTO> HienThi(string mapn)
        {
            ChiTietPhieuGuiHangDAO dao = new ChiTietPhieuGuiHangDAO();
            return dao.HienThi(mapn);
        }

        public int ThemCTPGH(ChiTietPhieuGuiHangDTO dto)
        {
            ChiTietPhieuGuiHangDAO dao = new ChiTietPhieuGuiHangDAO();
            return dao.ThemCTPGH(dto);
        }

        public int CapNhatCTPGH(ChiTietPhieuGuiHangDTO dto)
        {
            ChiTietPhieuGuiHangDAO dao = new ChiTietPhieuGuiHangDAO();
            return dao.CapNhatCTPGH(dto);
        }

        public int KiemTraCTPGH(string mactpgh)
        {
            ChiTietPhieuGuiHangDAO dao = new ChiTietPhieuGuiHangDAO();
            return dao.KiemTraCTPGH(mactpgh);
        }
        
    }
}
